home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17420 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.3 KB  |  40 lines

  1. Newsgroups: comp.lang.c++
  2. Path: server.blaze.net.au!csource!not-for-mail
  3. From: Edward.Connor@f309.n632.z3.fidonet.org (Edward Connor)
  4. Subject: Edit box & SetWindowText?
  5. Sender: news@blaze.net.au (news)
  6. Organization: FidoNet: Melbourne PC User Group BBS 
  7. Message-ID: <2c4_9604160250@csource.blaze.net.au>
  8. X-Nntp-Posting-Host: csource.blaze.net.au
  9. Date: Sun, 14 Apr 1996 22:42:22 GMT
  10.  
  11. Hi All
  12.  
  13. Why are things never as straight forward as they appear they can/should be?
  14.  
  15. Or is it me???
  16.  
  17. I create an edit box as the book, my bible, shows me (ie: Teach Yourself
  18. Windows Programming in 21 Days) using CreateWindow(...). [Day 10]
  19. Then I insert text into it using SetWindowText(...)
  20.  
  21. According to the book this "is a fairly simple process" which it is, but,
  22. the carriage returns do not initiate new lines. Instead all I get in the
  23. edit box instead of a carriage return is a small vertical line.
  24.  
  25. I have discovered that if I add a new line thing '\n' to the cr thing '\r'
  26. then there will occur a new line break in the script, but this is not a
  27. very efficient way to go about things. I have experimented with all the
  28. ES_... and WS_... things in the construction of the edit box, but to no
  29. avail.
  30.  
  31. There must be a 'proper' way to do it, but????
  32.  
  33. Thanks to any one who can assist
  34. Ed.
  35.  
  36.  
  37. --
  38. Edward.Connor@f309.n632.z3.fidonet.org, Edward Connor 3:632/309 (FidoNet)
  39.  
  40.